package thing

import (
	"tcs-server/tcs-design/src/things"
	bag "tcs-server/tcs-game-server/src/module/bag/service"
	player "tcs-server/tcs-game-server/src/module/player/service"
)

var storers map[int]things.IStorer

func init() {
	storers = make(map[int]things.IStorer)
	register(things.DIAMOND, &player.DiamondStorer{})
	register(things.GOLD, &player.GoldStorer{})
	register(things.EXP, &player.ExpStorer{})
	register(things.EXP, &bag.ItemStorer{})
}

func register(thingType things.ThingType, storer things.IStorer) {
	storers[int(thingType)] = storer
}
